
package org.come.npc;

import org.come.action.NpcMenuAction;
import org.come.model.Door;

public class Gotochangan implements NpcMenuAction {
	public Gotochangan() {
	}

	@Override
    public void menuControl(String type) {
		//标记我要回长安
		Door door = new Door();
		door.setDoormap("1207");
//		door.setDoorpoint("4294|2887");//薪版長安地图坐标
		door.setDoorpoint("4970|3870");//老版長安地图坐标
		if ("我想去死牢探监".equals(type)) {
			door.setDoormap("3312");
			door.setDoorpoint("2373|1737");
		} else if ("我想去地牢探监".equals(type)) {
			door.setDoormap("3313");
			door.setDoorpoint("162|1734");
		} else if ("我想去天牢探监".equals(type)) {
			door.setDoormap("3314");
			door.setDoorpoint("361|1657");
		}else if ("我要回家".equals(type)) {
			door.setDoormap("3339");
			door.setDoorpoint("3020|2240");
		}

		try {
			TP.tp(door, 2);
		} catch (Exception var4) {
			var4.printStackTrace();
		}

	}
}
